home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / dragracer.swf / scripts / DefineButton2_415 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2005-10-06  |  1.2 KB  |  48 lines

  1. on(release){
  2.    _root.player.name = this.name;
  3.    _root.player.cash = 30000;
  4.    if(this.name == "cashmoney")
  5.    {
  6.       _root.player.cash = 100000000;
  7.    }
  8.    else if(this.name == "maxipadler")
  9.    {
  10.       _root.BuyCar(_root.car,_root.FERRARI);
  11.    }
  12.    else if(this.name == "g-unit")
  13.    {
  14.       _root.BuyCar(_root.car,_root.HUMMER);
  15.       _root.car.cols = {rb:-200,bb:-200,gb:-200};
  16.    }
  17.    else if(this.name == "2fast4u")
  18.    {
  19.       _root.BuyCar(_root.car,_root.MCLAREN);
  20.    }
  21.    else if(this.name == "spyhunter")
  22.    {
  23.       _root.BuyCar(_root.car,_root.COMET);
  24.       _root.car.cols = {rb:-100,bb:-100,gb:-100};
  25.    }
  26.    else if(this.name == "excellence")
  27.    {
  28.       _root.BuyCar(_root.car,_root.CARRERAGT);
  29.       _root.car.cols = {rb:-100,bb:-100,gb:-100};
  30.    }
  31.    else if(this.name == "bondjamesbond")
  32.    {
  33.       _root.BuyCar(_root.car,_root.VANQUISH);
  34.       _root.car.cols = {rb:-100,bb:-100,gb:-100};
  35.    }
  36.    else if(this.name == "unclepeanuts")
  37.    {
  38.       _root.BuyCar(_root.car,_root.SALEEN);
  39.       _root.car.cols = {rb:-100,bb:-100,gb:-100};
  40.       _root.car.HP = 2000;
  41.       _root.car.TQ = 2000;
  42.       _root.car.WT = 100;
  43.       _root.car.CL = 5;
  44.    }
  45.    _root.gotoCarBuy();
  46.    this.removeMovieClip();
  47. }
  48.